package com.jade.framework.base.security;

import java.io.Serializable;
import java.security.Principal;

/**
 * 抽象的Principal
 *
 * @author dwzhang
 * @version 1.0 13-9-8 下午5:43
 */
public abstract class AbstractPrincipal
        implements Principal, Serializable
{
    protected String name;

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public boolean isSuperman()
    {
        return false;
    }

    public boolean equals(Principal p)
    {
        return p.getName().equals(name);
    }
}
